<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
	<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->

	<title>摘星船 0.11</title>
	<style type='text/css'>
	/* Disable user selection to avoid strange bug in Chrome on Windows:
	* Selecting a text outside the canvas, then clicking+draging would
	* drag the selected text but block mouse down/up events to the engine.
	*/
	body {
		-webkit-touch-callout: none;
		-webkit-user-select: none;
		-khtml-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
	}

	.canvas-app-container {
		background: rgb(255,255,255) no-repeat center url("try_game.png");
		/* A positioned parent for loading visuals */
		position: relative;
	}

	.canvas-app-container:-webkit-full-screen {
		/* Auto width and height in Safari/Chrome fullscreen. */
		width: auto;
		height: auto;
	}

	.canvas-app-canvas {
		max-height: 100vh;
		max-width: 100%;
	}

	.canvas-app-progress {
		position: absolute;
		background-color: rgb(245, 245, 245);
		height: 20px;
		/* Progress same width as canvas. */
		width: 1280px;
		bottom: 0px;
	}

	.canvas-app-progress-bar {
		font-size: 12px;
		height: 20px;
		color: rgb(255, 255, 255);
		background-color: rgb(30, 100, 234);
		text-align: center;
		line-height: 20px;
	}

	.button {
		color: #fff;
		background-color: #1e64ea;
		border-color: transparent;
		padding: 10px 20px;
	}
	</style>

	
</head>

<body>
	<div id="app-container" class="canvas-app-container">
		<canvas id="canvas" class="canvas-app-canvas" tabindex="1" width="1024" height="576"></canvas>
	</div>

	<button id="fullscreen" class="button">全屏 (Fullscreen)</button>

    <ul style="font-size: 0.95rem">
        <li>1.1 版 更新内容：</li>
        <ol>
            <li>现在 W、S 键与 ↑、↓ 键都可以操控飞碟了；</li>
            <li>增加了“碰撞陨石”会死亡的机制；</li>
            <li>调整了游戏速度，使其更有挑战性。</li>
        </ol>
    </ul>

    <span style="color: #aceee0; text-align: center; font-size: 0.9rem;">
        <p>感谢默默潜伏到群里来的“好阳光的小锅巴”帮忙宣发！</p>
        <p>本游戏会继续更新。虽然也不知道加 QQ 群有啥用，但还是要说：我们有 QQ 群哟（群号 483969197）</p>
        <p>采用 Defold 游戏引擎制作</p>
    </span>

	<!-- -->
	
	<script id='engine-loader' type='text/javascript' src="dmloader.js"></script>
	<!-- -->

	<script id='engine-setup' type='text/javascript'>
	var extra_params = {
		archive_location_filter: function( path ) {
			return ("archive" + path + "");
		},
		engine_arguments: [],
		splash_image: "splash_image.png",
		custom_heap_size: 268435456,
		disable_context_menu: true
	}

	Module['onRuntimeInitialized'] = function() {
		Module.runApp("canvas", extra_params);
	};

	Module["locateFile"] = function(path, scriptDirectory)
	{
		// dmengine*.wasm is hardcoded in the built JS loader for WASM,
		// we need to replace it here with the correct project name.
		if (path == "dmengine.wasm" || path == "dmengine_release.wasm" || path == "dmengine_headless.wasm") {
			path = "CollectStar.wasm";
		}
		return scriptDirectory + path;
	};

	function load_engine() {
		var engineJS = document.createElement('script');
		engineJS.type = 'text/javascript';
		if (Module['isWASMSupported']) {
		    engineJS.src = 'CollectStar_wasm.js';
		} else {
		    engineJS.src = 'CollectStar_asmjs.js';
		}
		document.head.appendChild(engineJS);
	}

	/* Fullscreen button */
	document.getElementById("fullscreen").onclick = function (e) {
		Module.toggleFullscreen();
	};

	</script>
	<script id='engine-start' type='text/javascript'>
		load_engine();
	</script>
	<!--客服 开始-->
<script src="//likexia.gitee.io/game/js/jquery.min.js"></script>
<link rel="stylesheet" href="//likexia.gitee.io/game/css/kf.css" type="text/css" media="screen" charset="utf-8">
<script src="//likexia.gitee.io/game/js/kf.js"></script>
<!-- 客服 结束 -->
<!--站长统计-->
    <div style="display: none">
        <script type="text/javascript" src="//s19.cnzz.com/z_stat.php?id=1267958737&web_id=1267958737"></script>
    </div>
</body>
</html>
